// vite.config.ts
import { defineConfig } from 'file:///D:/CodeBase/shouyang-fe/node_modules/vite/dist/node/index.js'
import vue from 'file:///D:/CodeBase/shouyang-fe/node_modules/@vitejs/plugin-vue/dist/index.mjs'
import eslintPlugin from 'file:///D:/CodeBase/shouyang-fe/node_modules/vite-plugin-eslint/dist/index.mjs'
import { createHtmlPlugin } from 'file:///D:/CodeBase/shouyang-fe/node_modules/vite-plugin-html/dist/index.mjs'
import vueSetupExtend from 'file:///D:/CodeBase/shouyang-fe/node_modules/vite-plugin-vue-setup-extend/dist/index.mjs'
import { resolve } from 'path'
import autoprefixer from 'file:///D:/CodeBase/shouyang-fe/node_modules/autoprefixer/lib/autoprefixer.js'
var __vite_injected_original_dirname = 'D:\\CodeBase\\shouyang-fe'
var name = '\u6807\u51C6\u6A21\u677F'
var vite_config_default = defineConfig({
  server: {
    host: '0.0.0.0',
    proxy: {
      '^/api': {
        target: 'http://192.168.8.181:21030',
        changeOrigin: true
      },
      '^/v1': {
        target: 'http://192.168.8.181:5000/api',
        changeOrigin: true
      }
    }
  },
  css: {
    postcss: {
      plugins: [ autoprefixer({}) ]
    }
    // preprocessorOptions: {
    //   scss: {
    //     additionalData: `@import "@/styles/theme.scss";`
    //   }
    // }
  },
  plugins: [
    vue(),
    vueSetupExtend(),
    eslintPlugin({
      include: [ 'src/**/*.js', 'src/**/*.vue', 'src/*.js', 'src/*.vue' ]
    }),
    createHtmlPlugin({
      inject: {
        data: {
          title: name
        }
      }
    })
  ],
  build: {
    target: 'es2015',
    minify: 'terser',
    terserOptions: {
      compress: {
        drop_console: true,
        drop_debugger: true
      }
    },
    rollupOptions: {
      output: {
        manualChunks: {
          vue: [ 'vue' ]
        }
      }
    }
  },
  resolve: {
    alias: {
      '@': resolve(__vite_injected_original_dirname, 'src')
      // 路径别名
    },
    extensions: [ '.js', '.json', '.ts' ]
  }
})
export {
  vite_config_default as default
}
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlc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